package hoster;

import java.util.Comparator;

public class doctorComparator implements Comparator<doctor> {
    @Override
    public int compare(doctor o1, doctor o2) {
        if (o1.time>o2.time)
            return 1;
        else if (o1.time==o2.time)
            return 0;
        else
            return -1;
    }
}
